package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.Company;
import org.jeecg.modules.company.facade.ICompanyFacade;
import org.jeecg.modules.company.service.ICompanyService;
import org.jeecg.modules.company.vo.CompanyVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 公司
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class CompanyFacadeImpl extends IFacadeImpl<CompanyVo, Company, ICompanyService>  implements ICompanyFacade<CompanyVo, Company> {
        @Autowired
        private ICompanyService companyService;


         @Override
         public Company po2Vo(CompanyVo vo) {
                Company po = new Company();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public CompanyVo vo2Po(Company po) {
                CompanyVo vo = new CompanyVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
